#!/bin/bash
# author: Katrin Feyrer
# date: 22.10.2013

FREQ=$1
DUR=$2
NAME=$3

COLLECTION=$(($DUR/$FREQ))

mpstat $FREQ $COLLECTION > $NAME

gzip $NAME

echo "Script finished"
